home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 050 / madtrb2.arc / G_I_TPL.FRM < prev    next >
Text File  |  1986-02-27  |  22KB  |  226 lines

  1. { G_I_TPL.FRM }
  2.  
  3. { *************************************************************************** }
  4. { *                                                                         * }
  5. { *                TURBO SCREEN INPUT PRE-PROCESSOR TOOLKIT                 * }
  6. { *                                                                         * }
  7. { *                   GENERAL INPUT SCREEN TEMPLATE FORM                    * }
  8. { *                                                                         * }
  9. { *                             Version  1.07                               * }
  10. { *                                                                         * }
  11. { *                                                                         * }
  12. { *   The screen templates are the key to versatility of this the pre-      * }
  13. { *   processor.  It is by altering these templates you then alter how the  * }
  14. { *   screen pages will appear to the user.  For example, you may have      * }
  15. { *   four different application programs you have written and each         * }
  16. { *   program requires a unique set of inputs from the user.  All you do    * }
  17. { *   is alter the screen templates for each of the four programs with the  * }
  18. { *   proper screen template generators, while using the same input pre-    * }
  19. { *   processor subprograms to control the interaction between the user     * }
  20. { *   and the four application programs.                                    * }
  21. { *                                                                         * }
  22. { *   A screen template is simply a file containing information about the   * }
  23. { *   prompts (or descriptors) to be displayed when a particular screen     * }
  24. { *   page is shown.  The screen template is a series of records where      * }
  25. { *   each record describes one particular prompt for a particular screen   * }
  26. { *   page.                                                                 * }
  27. { *                                                                         * }
  28. { *   This template form is provided so that you can easily fill out the    * }
  29. { *   general input screen template for your particular application of the  * }
  30. { *   input pre-processor with the proper data in the proper format for     * }
  31. { *   the General Input Subprogram to use.                                  * }
  32. { *                                                                         * }
  33. { *   You can use your printer to get a hard copy of this template form.    * }
  34. { *   This will allow you to fill out the form by hand.  I recommend that   * }
  35. { *   you set your printer to print in compressed mode before printing      * }
  36. { *   out this file since the template form is 125 characters wide.  Then   * }
  37. { *   use the general input screen template generator to enter this data    * }
  38. { *   into a template file.                                                 * }
  39. { *                                                                         * }
  40. { *   Filling out the form is quite easy.  Start by listing all the input   * }
  41. { *   prompts you wish to show up on your general input page.  Then enter   * }
  42. { *   the screen column and row that you want the input prompt to be        * }
  43. { *   displayed at (the screen is 80 columns wide and 25 rows high, the     * }
  44. { *   upper left corner of the screen is column 1, row 1 ).  Then for the   * }
  45. { *   Up Key Pointer and Down Key Pointer enter the prompt you wish to be   * }
  46. { *   highlighted when the user curses up or down.  For example:            * }
  47. { *                                                                         * }
  48. { *       Record        Up Key  Down Key         Prompt                     * }
  49. { *       Number        Pointer Pointer                                     * }
  50. { *       ------        ------- --------         ------------------         * }
  51. { *         1              0       2             Number of Gidgets          * }
  52. { *         2              1       0             Number of Widgits          * }
  53. { *                                                                         * }
  54. { *   When the General Input Subprogram executes, prompt 1 would be         * }
  55. { *   highlighted and prompt 2 would not.  If the operator struck the down  * }
  56. { *   key, prompt 2 would now be highlighted and prompt 1 wouldn't.  If     * }
  57. { *   the user struck the down key again the General Input Subprogram       * }
  58. { *   would recognize that the down key pointer for prompt 2 is 0 and thus  * }
  59. { *   would only sound an error.  It would not allow the user to curse any  * }
  60. { *   further downward.  The same sort of logic can be applied for the      * }
  61. { *   other key pointers.                                                   * }
  62. { *                                                                         * }
  63. { *   The General Input Subprogram also checks to see that the accumulated  * }
  64. { *   data entry is less than the maximum allowed length.  The subprogram   * }
  65. { *   also checks to see if the characters the user has entered are of the  * }
  66. { *   type allowed.  A list of different input data types the General       * }
  67. { *   Input Subprogram can check for follows:                               * }
  68. { *                                                                         * }
  69. { *         Input                                                           * }
  70. { *         Data                                                            * }
  71. { *         Type                                                            * }
  72. { *         Value       Description of Input Data Type                      * }
  73. { *         -----       -------------------------------------------         * }
  74. { *           1         Positive Integer ( including zero )                 * }
  75. { *           2         Negative Integer ( including zero )                 * }
  76. { *           3         Integer                                             * }
  77. { *           4         Positive Real ( including zero )                    * }
  78. { *           5         Negative Real ( including zero )                    * }
  79. { *           6         Real                                                * }
  80. { *           7         Data File Name Characters                           * }
  81. { *           8         Disk Drive and Subdirectory Path Characters         * }
  82. { *           9         General Characters                                  * }
  83. { *                                                                         * }
  84. { *************************************************************************** }
  85.  
  86. |-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|----------------------------
  87. |Record |Prompt |Prompt |Input  |Input  |Input  |Input  |Return |Up     |Down   |Left   |Right  |Prompt
  88. |Number |Column |Row    |Column |Row    |Length |Data   |Key    |Key    |Key    |Key    |Key    |
  89. |       |       |       |       |       |       |Type   |Pointer|Pointer|Pointer|Pointer|Pointer|
  90. |-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|----------------------------
  91. |   1   |       |       |       |       |       |       |       |       |       |       |       |
  92. |       |       |       |       |       |       |       |       |       |       |       |       |
  93. |-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|----------------------------
  94. |   2   |       |       |       |       |       |       |       |       |       |       |       |
  95. |       |       |       |       |       |       |       |       |       |       |       |       |
  96. |-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|----------------------------
  97. |   3   |       |       |       |       |       |       |       |       |       |       |       |
  98. |       |       |       |       |       |       |       |       |       |       |       |       |
  99. |-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|----------------------------
  100. |   4   |       |       |       |       |       |       |       |       |       |       |       |
  101. |       |       |       |       |       |       |       |       |       |       |       |       |
  102. |-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|----------------------------
  103. |   5   |       |       |       |       |       |       |       |       |       |       |       |
  104. |       |       |       |       |       |       |       |       |       |       |       |       |
  105. |-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|----------------------------
  106. |   6   |       |       |       |       |       |       |       |       |       |       |       |
  107. |       |       |       |       |       |       |       |       |       |       |       |       |
  108. |-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|----------------------------
  109. |   7   |       |       |       |       |       |       |       |       |       |       |       |
  110. |       |       |       |       |       |       |       |       |       |       |       |       |
  111. |-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|----------------------------
  112. |   8   |       |       |       |       |       |       |       |       |       |       |       |
  113. |       |       |       |       |       |       |       |       |       |       |       |       |
  114. |-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|----------------------------
  115. |   9   |       |       |       |       |       |       |       |       |       |       |       |
  116. |       |       |       |       |       |       |       |       |       |       |       |       |
  117. |-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|----------------------------
  118. |  10   |       |       |       |       |       |       |       |       |       |       |       |
  119. |       |       |       |       |       |       |       |       |       |       |       |       |
  120. |-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|----------------------------
  121. |  11   |       |       |       |       |       |       |       |       |       |       |       |
  122. |       |       |       |       |       |       |       |       |       |       |       |       |
  123. |-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|----------------------------
  124. |  12   |       |       |       |       |       |       |       |       |       |       |       |
  125. |       |       |       |       |       |       |       |       |       |       |       |       |
  126. |-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|----------------------------
  127. |  13   |       |       |       |       |       |       |       |       |       |       |       |
  128. |       |       |       |       |       |       |       |       |       |       |       |       |
  129. |-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|----------------------------
  130. |  14   |       |       |       |       |       |       |       |       |       |       |       |
  131. |       |       |       |       |       |       |       |       |       |       |       |       |
  132. |-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|----------------------------
  133. |  15   |       |       |       |       |       |       |       |       |       |       |       |
  134. |       |       |       |       |       |       |       |       |       |       |       |       |
  135. |-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|----------------------------
  136. |  16   |       |       |       |       |       |       |       |       |       |       |       |
  137. |       |       |       |       |       |       |       |       |       |       |       |       |
  138. |-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|----------------------------
  139. |  17   |       |       |       |       |       |       |       |       |       |       |       |
  140. |       |       |       |       |       |       |       |       |       |       |       |       |
  141. |-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|----------------------------
  142. |  18   |       |       |       |       |       |       |       |       |       |       |       |
  143. |       |       |       |       |       |       |       |       |       |       |       |       |
  144. |-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|----------------------------
  145. |  19   |       |       |       |       |       |       |       |       |       |       |       |
  146. |       |       |       |       |       |       |       |       |       |       |       |       |
  147. |-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|----------------------------
  148. |  20   |       |       |       |       |       |       |       |       |       |       |       |
  149. |       |       |       |       |       |       |       |       |       |       |       |       |
  150. |-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|----------------------------
  151. |  21   |       |       |       |       |       |       |       |       |       |       |       |
  152. |       |       |       |       |       |       |       |       |       |       |       |       |
  153. |-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|----------------------------
  154. |  22   |       |       |       |       |       |       |       |       |       |       |       |
  155. |       |       |       |       |       |       |       |       |       |       |       |       |
  156. |-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|----------------------------
  157. |  23   |       |       |       |       |       |       |       |       |       |       |       |
  158. |       |       |       |       |       |       |       |       |       |       |       |       |
  159. |-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|----------------------------
  160. |  24   |       |       |       |       |       |       |       |       |       |       |       |
  161. |       |       |       |       |       |       |       |       |       |       |       |       |
  162. |-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|----------------------------
  163. |  25   |       |       |       |       |       |       |       |       |       |       |       |
  164. |       |       |       |       |       |       |       |       |       |       |       |       |
  165. |-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|----------------------------
  166. |  26   |       |       |       |       |       |       |       |       |       |       |       |
  167. |       |       |       |       |       |       |       |       |       |       |       |       |
  168. |-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|----------------------------
  169. |  27   |       |       |       |       |       |       |       |       |       |       |       |
  170. |       |       |       |       |       |       |       |       |       |       |       |       |
  171. |-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|----------------------------
  172. |  28   |       |       |       |       |       |       |       |       |       |       |       |
  173. |       |       |       |       |       |       |       |       |       |       |       |       |
  174. |-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|----------------------------
  175. |  29   |       |       |       |       |       |       |       |       |       |       |       |
  176. |       |       |       |       |       |       |       |       |       |       |       |       |
  177. |-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|----------------------------
  178. |  30   |       |       |       |       |       |       |       |       |       |       |       |
  179. |       |       |       |       |       |       |       |       |       |       |       |       |
  180. |-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|----------------------------
  181. |  31   |       |       |       |       |       |       |       |       |       |       |       |
  182. |       |       |       |       |       |       |       |       |       |       |       |       |
  183. |-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|----------------------------
  184. |  32   |       |       |       |       |       |       |       |       |       |       |       |
  185. |       |       |       |       |       |       |       |       |       |       |       |       |
  186. |-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|----------------------------
  187. |  33   |       |       |       |       |       |       |       |       |       |       |       |
  188. |       |       |       |       |       |       |       |       |       |       |       |       |
  189. |-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|----------------------------
  190. |  34   |       |       |       |       |       |       |       |       |       |       |       |
  191. |       |       |       |       |       |       |       |       |       |       |       |       |
  192. |-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|----------------------------
  193. |  35   |       |       |       |       |       |       |       |       |       |       |       |
  194. |       |       |       |       |       |       |       |       |       |       |       |       |
  195. |-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|----------------------------
  196. |  36   |       |       |       |       |       |       |       |       |       |       |       |
  197. |       |       |       |       |       |       |       |       |       |       |       |       |
  198. |-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|----------------------------
  199. |  37   |       |       |       |       |       |       |       |       |       |       |       |
  200. |       |       |       |       |       |       |       |       |       |       |       |       |
  201. |-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|----------------------------
  202. |  38   |       |       |       |       |       |       |       |       |       |       |       |
  203. |       |       |       |       |       |       |       |       |       |       |       |       |
  204. |-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|----------------------------
  205. |  39   |       |       |       |       |       |       |       |       |       |       |       |
  206. |       |       |       |       |       |       |       |       |       |       |       |       |
  207. |-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|----------------------------
  208. |  40   |       |       |       |       |       |       |       |       |       |       |       |
  209. |       |       |       |       |       |       |       |       |       |       |       |       |
  210. |-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|----------------------------
  211. |  41   |       |       |       |       |       |       |       |       |       |       |       |
  212. |       |       |       |       |       |       |       |       |       |       |       |       |
  213. |-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|----------------------------
  214. |  42   |       |       |       |       |       |       |       |       |       |       |       |
  215. |       |       |       |       |       |       |       |       |       |       |       |       |
  216. |-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|----------------------------
  217. |  43   |       |       |       |       |       |       |       |       |       |       |       |
  218. |       |       |       |       |       |       |       |       |       |       |       |       |
  219. |-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|----------------------------
  220. |  44   |       |       |       |       |       |       |       |       |       |       |       |
  221. |       |       |       |       |       |       |       |       |       |       |       |       |
  222. |-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|----------------------------
  223. |  45   |       |       |       |       |       |       |       |       |       |       |       |
  224. |       |       |       |       |       |       |       |       |       |       |       |       |
  225. |-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|----------------------------
  226.